package clids.ex2.actions;

import java.io.File;
import java.util.Date;
//modiflies last modified
public class ActionLastMod extends AbstractAction {
	public void doAction(String filePath) {
		File f = new File(filePath);
		String[] dateValues = actionParam.split("/");
		@SuppressWarnings("deprecation")
		Date modDate = new Date(Integer.parseInt(dateValues[2]),
				Integer.parseInt(dateValues[1]),
				Integer.parseInt(dateValues[0]));
		f.setLastModified(modDate.getTime());
	}
}
